﻿using System.Web;
using CooliteExamples.Web.Code;
using CooliteExamples.Web.Controllers;

namespace CooliteExamples.Web.Handlers.Author
{
		/// <summary>
		/// Summary description for $codebehindclassname$
		/// </summary>
		public class GetAuthorsForBookFromController : HandlerBase
		{
				public override void ProcessRequest(HttpContext context)
				{
						BookEntryController currentController =
										(BookEntryController)context.Session[Core.Constants.CURRENT_CONTROLLER];

						var asr = new AjaxStoreResult(currentController.CurrentBook.Authors);
						asr.ExecuteResult(context);
				}
		}
}
